package com.lihua.newideas.pojo;


public class Comment {

  private long id;
  private long articleId;
  private String userName;
  private String comment;

  public Comment() {
  }

  public Comment(long id, long articleId, String userName, String comment) {
    this.id = id;
    this.articleId = articleId;
    this.userName = userName;
    this.comment = comment;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public long getArticleId() {
    return articleId;
  }

  public void setArticleId(long articleId) {
    this.articleId = articleId;
  }


  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }


  public String getComment() {
    return comment;
  }

  public void setComment(String comment) {
    this.comment = comment;
  }

  @Override
  public String toString() {
    return "Comment{" +
            "id=" + id +
            ", articleId=" + articleId +
            ", userName='" + userName + '\'' +
            ", comment='" + comment + '\'' +
            '}';
  }
}
